#ifndef  ORDER_EVENT_H_INC
#define  ORDER_EVENT_H_INC

#include "disruptor/interface.h"
#include "ftd.h"

class OrderEvent
{
public:
	OrderEvent(){}

	const OrderInsertField& GetValue()
	{
		return _order;
	}
	void SetValue(void* content)
	{
		memcpy(&_order, content, sizeof(OrderInsertField));

	}
private:
	OrderInsertField _order;
};

class OrderEventFactory : public disruptor::EventFactoryInterface<OrderEvent>{
public:
	virtual OrderEvent* NewInstance(const int& size) const {
		return new OrderEvent[size];
	}
};

#endif
